zero_touch_certs

Configuration for Zero touch certificate resource.

Read/write properties

file_size<Integer>

Size of the file in bytes.

dns_provider_name<String>

DNS Provider of the domain name from the issuer certificate..

days_to_expiry<Integer>

Days before SSL certificate expires.

renew_mode<String>

Renew mode for the certificate. It can be MANUAL or AUTO. If it is set to AUTO, then the certificate will be auto renewed based on the CA config associated with this certificate..

is_auto_renewal_enabled<Boolean>

Set to true, if the certificate is enabled for auto renewal..

file_type<String>

Type of file (Certificate/Key).

valid_to<String>

Valid To.

password<String>

The pass-phrase that was used to encrypt the private-key..
Maximum length = 128

renewal_status<String>

Last renewal status (SUCCESS/FAILED) for this certificate. This is applicable when the certificate is enabled for auto renewal..

cert_format<String>

Certificate Format.

cert_id_array<String[]>

Array of cert store IDs.

cert_store_lists<cert_store_list[]>

List of cert_store objects.

csr_data<String>

Base64 encoded CSR file contents..
Maximum length = 16384

is_cert<Boolean>

Set to true, if the file is of certificate type.

is_issued_from_csr<Boolean>

Set to true, if the certificate is issued from CSR..

subjaltname<String>

Comma separated Subject Alternative Names.

id<String>

Id is system generated key for all certificate story entries. .

file_data<String>

Base64 encoded cert/key file contents..
Maximum length = 50000

valid_from<String>

Valid From.

last_renewed_at<Double>

Last renewal time for this certificate in seconds. This is applicable when the certificate is enabled for auto renewal..

acme_ca_config_id<String>

ID of the CA config that is used to renew the certificate.

managed_by<String>

Indicates the CA provider if the certificate is managed by a ACME CA provider..

is_active<Boolean>

Set to true, if the certificate is valid and not expired.

file_name<String>

Certificate file name..
Minimum length = 1
Maximum length = 128

file_upload_time<Double>

Creation time for this activity in seconds.

activity_id<String>

Activity Id used to track the progress of all the certificate operations..

Read only properties

hash_code<String>

Zero touch: MD5sum(hash code) of the complete certificate (certificates, key and chain certiticates) or key content.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

get (all)adddelete

get (all)

URL:https://<MGMT-IP>/nitro/v2/config/zero_touch_certs

Query-parameters:

filter

https://<MGMT-IP>/nitro/v2/config/zero_touch_certs?filter=property-name1:property-value1,property-name2:property-value2

Use this query-parameter to get the filtered set of zero_touch_certs resources configured on the system. You can set a filter on any property of the resource.

pagesize=#no&pageno=#no

https://<MGMT-IP>/nitro/v2/config/zero_touch_certs?pagesize=#no&pageno=#no

Use this query-parameter to get the zero_touch_certs resources in chunks.

count

https://<MGMT-IP>/nitro/v2/config/zero_touch_certs?count=yes

Use this query-parameter to get the count of zero_touch_certs resources.

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "zero_touch_certs":[{
      "file_size":<Integer_value>,
      "dns_provider_name":<String_value>,
      "days_to_expiry":<Integer_value>,
      "renew_mode":<String_value>,
      "is_auto_renewal_enabled":<Boolean_value>,
      "file_type":<String_value>,
      "valid_to":<String_value>,
      "password":<String_value>,
      "hash_code":<String_value>,
      "renewal_status":<String_value>,
      "cert_format":<String_value>,
      "cert_id_array":<String_value>,
      "cert_store_lists":[{
      "password":<String_value>,
      "file_name":<String_value>,
      "cert_format":<String_value>,
      "file_data":<String_value>}],
      "csr_data":<String_value>,
      "is_cert":<Boolean_value>,
      "is_issued_from_csr":<Boolean_value>,
      "subjaltname":<String_value>,
      "id":<String_value>,
      "file_data":<String_value>,
      "valid_from":<String_value>,
      "last_renewed_at":<Double_value>,
      "acme_ca_config_id":<String_value>,
      "managed_by":<String_value>,
      "is_active":<Boolean_value>,
      "file_name":<String_value>,
      "file_upload_time":<Double_value>,
      "activity_id":<String_value>}]}

add

URL:https://<MGMT-IP>/nitro/v2/config/zero_touch_certs?onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"zero_touch_certs": {
      "cert_format":<String_value>,
      "renewal_status":<String_value>,
      "file_type":<String_value>,
      "id":<String_value>,
      "is_issued_from_csr":<Boolean_value>,
      "is_cert":<Boolean_value>,
      "csr_data":<String_value>,
      "cert_id_array":<String_value[]>,
      "file_data":<String_value>,
      "is_active":<Boolean_value>,
      "acme_ca_config_id":<String_value>,
      "is_auto_renewal_enabled":<Boolean_value>,
      "renew_mode":<String_value>,
      "password":<String_value>,
      "valid_to":<String_value>,
      "days_to_expiry":<Integer_value>,
      "file_size":<Integer_value>,
      "dns_provider_name":<String_value>,
      "subjaltname":<String_value>,
      "cert_store_lists":[{
      "password":<String_value>,
      "file_name":<String_value>,
      "file_data":<String_value>}]
,
      "last_renewed_at":<Double_value>,
      "valid_from":<String_value>,
      "activity_id":<String_value>,
      "file_name":<String_value>,
      "file_upload_time":<Double_value>,
      "managed_by":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "zero_touch_certs":[{
      "file_size":<Integer_value>,
      "dns_provider_name":<String_value>,
      "days_to_expiry":<Integer_value>,
      "renew_mode":<String_value>,
      "is_auto_renewal_enabled":<Boolean_value>,
      "file_type":<String_value>,
      "valid_to":<String_value>,
      "password":<String_value>,
      "hash_code":<String_value>,
      "renewal_status":<String_value>,
      "cert_format":<String_value>,
      "cert_id_array":<String_value>,
      "cert_store_lists":[{
      "password":<String_value>,
      "file_name":<String_value>,
      "cert_format":<String_value>,
      "file_data":<String_value>}],
      "csr_data":<String_value>,
      "is_cert":<Boolean_value>,
      "is_issued_from_csr":<Boolean_value>,
      "subjaltname":<String_value>,
      "id":<String_value>,
      "file_data":<String_value>,
      "valid_from":<String_value>,
      "last_renewed_at":<Double_value>,
      "acme_ca_config_id":<String_value>,
      "managed_by":<String_value>,
      "is_active":<Boolean_value>,
      "file_name":<String_value>,
      "file_upload_time":<Double_value>,
      "activity_id":<String_value>}]}

delete

URL:https://<MGMT-IP>/nitro/v2/config/zero_touch_certs/

HTTPS Method:DELETE

Request Headers:

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value> }